﻿
namespace Indeco.G24.Windows.Forms
{
	/// <summary>
	/// abstract NhaCungCapCauHinh typed datagridview
	/// </summary>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class NhaCungCapCauHinhDataGridViewBase : System.Windows.Forms.UserControl
	{	
		/// <summary> 
		/// Thrown when the current Entity changed.
		/// </summary>
		public event System.EventHandler<NhaCungCapCauHinhDataGridViewEventArgs> CurrentEntityChanged;
		
		#region Fields
				
		/// <summary> 
		/// the current entity.
		/// </summary>
		private Entities.NhaCungCapCauHinh _currentNhaCungCapCauHinh = null;
		//private Dictionary<string, string> _columnsHeaders = new Dictionary<string, string>();
		
		/// <summary> 
		/// the datagridview instance
		/// </summary>
		protected System.Windows.Forms.DataGridView uxNhaCungCapCauHinhDataGridView;
		
		/// <summary> 
		/// the errorprovider
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxNhaCungCapCauHinhErrorProvider;
		
		/// <summary> 
		/// the bindingsource
		/// </summary>
		protected System.Windows.Forms.BindingSource uxNhaCungCapCauHinhBindingSource;
		
		/// <summary> 
		/// the DGV column associated with the IDNhaCungCap property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDNhaCungCapDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the GiaoDien property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxGiaoDienDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the NgonNgu property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNgonNguDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Title property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxTitleDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Banner property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxBannerDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Logo property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxLogoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Footer property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxFooterDataGridViewColumn;
		
		#endregion
					
		#region Combo list
		
				
		private Entities.TList<Entities.NhaCungCap> _IDNhaCungCapList;
		
		/// <summary> 
		/// The list of selectable NhaCungCap
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.NhaCungCap> IDNhaCungCapList
		{
			get {return this._IDNhaCungCapList;}
			set 
			{
				this._IDNhaCungCapList = value;
				this.uxIDNhaCungCapDataGridViewColumn.DataSource = null;
				this.uxIDNhaCungCapDataGridViewColumn.DataSource = this._IDNhaCungCapList;
			}
		}
		
		private bool _allowNewItemInIDNhaCungCapList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of NhaCungCap
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDNhaCungCapList
		{
			get { return _allowNewItemInIDNhaCungCapList;}
			set
			{
				this._allowNewItemInIDNhaCungCapList = value;
				this.uxIDNhaCungCapDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
		#endregion
		
		#region Main Datasource
		
		private Entities.TList<Entities.NhaCungCapCauHinh> _NhaCungCapCauHinhList;
				
		/// <summary> 
		/// The list of NhaCungCapCauHinh to be displayed in the DGV.
		/// </summary>
		[System.ComponentModel.Category("Data")]
		public Entities.TList<Entities.NhaCungCapCauHinh> NhaCungCapCauHinhList
		{
			get {return this._NhaCungCapCauHinhList;}
			set
			{
				this._NhaCungCapCauHinhList = value;
				this.uxNhaCungCapCauHinhBindingSource.DataSource = null;
				this.uxNhaCungCapCauHinhBindingSource.DataSource = value;
				this.uxNhaCungCapCauHinhDataGridView.DataSource = null;
				this.uxNhaCungCapCauHinhDataGridView.DataSource = this.uxNhaCungCapCauHinhBindingSource;				
				//this.uxNhaCungCapCauHinhBindingSource.ListChanged += new System.ComponentModel.ListChangedEventHandler(uxNhaCungCapCauHinhBindingSource_ListChanged);
				this.uxNhaCungCapCauHinhBindingSource.CurrentItemChanged += new System.EventHandler(OnNhaCungCapCauHinhBindingSourceCurrentItemChanged);
			}
		}
		
		private void OnNhaCungCapCauHinhBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
		{
			_currentNhaCungCapCauHinh = uxNhaCungCapCauHinhBindingSource.Current as Entities.NhaCungCapCauHinh;
			
			if (_currentNhaCungCapCauHinh != null)
			{
				_currentNhaCungCapCauHinh.Validate();
			}
			//_NhaCungCapCauHinh.Validate();
			OnCurrentEntityChanged();
		}

		//void uxNhaCungCapCauHinhBindingSource_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
		//{
			//throw new Exception("The method or operation is not implemented.");
		//}		
		
		#endregion
		
		/// <summary>
		/// Gets the currently selected <c cref="Entities.NhaCungCapCauHinh"/> instance.
		/// </summary>
		public Entities.NhaCungCapCauHinh SelectedNhaCungCapCauHinh
		{
			get {return this._currentNhaCungCapCauHinh;}
		}
		
		#region other properties
		
		/// <summary>
		/// Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool VirtualMode
		{
			get {return this.uxNhaCungCapCauHinhDataGridView.VirtualMode;}
			set
			{
				this.uxNhaCungCapCauHinhDataGridView.VirtualMode = value;
			}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the option to add rows is displayed to the user.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToAddRows
		{
			get {return this.uxNhaCungCapCauHinhDataGridView.AllowUserToAddRows;}
			set {this.uxNhaCungCapCauHinhDataGridView.AllowUserToAddRows = value;}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToDeleteRows
		{
			get {return this.uxNhaCungCapCauHinhDataGridView.AllowUserToDeleteRows;}
			set {this.uxNhaCungCapCauHinhDataGridView.AllowUserToDeleteRows = value;}
		}
		
		/// <summary>
		/// Gets the <c cref="DataGridView"/> instance.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public System.Windows.Forms.DataGridView DataGridView
		{
			get {return this.uxNhaCungCapCauHinhDataGridView;}
		}
		
		/// <summary>
		/// Gets a collection that contains all the columns in the control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]		
		[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
		//[System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.DataGridViewColumnCollectionEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))] 
		public System.Windows.Forms.DataGridViewColumnCollection Columns
		{
			get { return this.uxNhaCungCapCauHinhDataGridView.Columns; }
		}
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;
	
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	
		#region Constructor
	
		/// <summary>
		/// Initializes a new instance of the <see cref="NhaCungCapCauHinhDataGridViewBase"/> class.
		/// </summary>
		public NhaCungCapCauHinhDataGridViewBase()
		{			
			this.components = new System.ComponentModel.Container();			
			
			this.uxNhaCungCapCauHinhDataGridView = new System.Windows.Forms.DataGridView();
			this.uxNhaCungCapCauHinhBindingSource = new System.Windows.Forms.BindingSource(this.components);
			this.uxNhaCungCapCauHinhErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxIDNhaCungCapDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxGiaoDienDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNgonNguDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxTitleDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxBannerDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxLogoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxFooterDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			//this.uxIDNhaCungCapBindingSource = new NhaCungCapBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDNhaCungCapBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaCungCapCauHinhDataGridView)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaCungCapCauHinhBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaCungCapCauHinhErrorProvider)).BeginInit();
			this.SuspendLayout();
						
			// 
			// uxNhaCungCapCauHinhErrorProvider
			// 
			this.uxNhaCungCapCauHinhErrorProvider.ContainerControl = this;
			this.uxNhaCungCapCauHinhErrorProvider.DataSource = this.uxNhaCungCapCauHinhBindingSource;						
			// 
			// uxNhaCungCapCauHinhDataGridView
			// 
			this.uxNhaCungCapCauHinhDataGridView.AutoGenerateColumns = false;
			this.uxNhaCungCapCauHinhDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.uxNhaCungCapCauHinhDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
		this.uxIDNhaCungCapDataGridViewColumn,
		this.uxGiaoDienDataGridViewColumn,
		this.uxNgonNguDataGridViewColumn,
		this.uxTitleDataGridViewColumn,
		this.uxBannerDataGridViewColumn,
		this.uxLogoDataGridViewColumn,
		this.uxFooterDataGridViewColumn			});
			this.uxNhaCungCapCauHinhDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.uxNhaCungCapCauHinhDataGridView.Location = new System.Drawing.Point(0, 0);
			this.uxNhaCungCapCauHinhDataGridView.Name = "uxNhaCungCapCauHinhDataGridView";
			this.uxNhaCungCapCauHinhDataGridView.Size = new System.Drawing.Size(470, 300);
			this.uxNhaCungCapCauHinhDataGridView.TabIndex = 0;	
			this.uxNhaCungCapCauHinhDataGridView.BackgroundColor = System.Drawing.Color.WhiteSmoke;
			this.uxNhaCungCapCauHinhDataGridView.EnableHeadersVisualStyles = false;
			this.uxNhaCungCapCauHinhDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.OnNhaCungCapCauHinhDataGridViewDataError);
			this.uxNhaCungCapCauHinhDataGridView.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnNhaCungCapCauHinhDataGridViewCellValueNeeded);
			this.uxNhaCungCapCauHinhDataGridView.CellValuePushed += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnNhaCungCapCauHinhDataGridViewCellValuePushed);
			
			//
			// uxIDNhaCungCapDataGridViewColumn
			//
			this.uxIDNhaCungCapDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDNhaCungCapDataGridViewColumn.DataPropertyName = "IDNhaCungCap";
			this.uxIDNhaCungCapDataGridViewColumn.HeaderText = "IDNhaCungCap";
			this.uxIDNhaCungCapDataGridViewColumn.Name = "uxIDNhaCungCapDataGridViewColumn";
			this.uxIDNhaCungCapDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDNhaCungCapDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDNhaCungCapDataGridViewColumn.ReadOnly = false;		
			//
			// uxGiaoDienDataGridViewColumn
			//
			this.uxGiaoDienDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxGiaoDienDataGridViewColumn.DataPropertyName = "GiaoDien";
			this.uxGiaoDienDataGridViewColumn.HeaderText = "GiaoDien";
			this.uxGiaoDienDataGridViewColumn.Name = "uxGiaoDienDataGridViewColumn";
			this.uxGiaoDienDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxGiaoDienDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxGiaoDienDataGridViewColumn.ReadOnly = false;		
			//
			// uxNgonNguDataGridViewColumn
			//
			this.uxNgonNguDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNgonNguDataGridViewColumn.DataPropertyName = "NgonNgu";
			this.uxNgonNguDataGridViewColumn.HeaderText = "NgonNgu";
			this.uxNgonNguDataGridViewColumn.Name = "uxNgonNguDataGridViewColumn";
			this.uxNgonNguDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNgonNguDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNgonNguDataGridViewColumn.ReadOnly = false;		
			//
			// uxTitleDataGridViewColumn
			//
			this.uxTitleDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxTitleDataGridViewColumn.DataPropertyName = "Title";
			this.uxTitleDataGridViewColumn.HeaderText = "Title";
			this.uxTitleDataGridViewColumn.Name = "uxTitleDataGridViewColumn";
			this.uxTitleDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxTitleDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxTitleDataGridViewColumn.ReadOnly = false;		
			//
			// uxBannerDataGridViewColumn
			//
			this.uxBannerDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxBannerDataGridViewColumn.DataPropertyName = "Banner";
			this.uxBannerDataGridViewColumn.HeaderText = "Banner";
			this.uxBannerDataGridViewColumn.Name = "uxBannerDataGridViewColumn";
			this.uxBannerDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxBannerDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxBannerDataGridViewColumn.ReadOnly = false;		
			//
			// uxLogoDataGridViewColumn
			//
			this.uxLogoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxLogoDataGridViewColumn.DataPropertyName = "Logo";
			this.uxLogoDataGridViewColumn.HeaderText = "Logo";
			this.uxLogoDataGridViewColumn.Name = "uxLogoDataGridViewColumn";
			this.uxLogoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxLogoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxLogoDataGridViewColumn.ReadOnly = false;		
			//
			// uxFooterDataGridViewColumn
			//
			this.uxFooterDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxFooterDataGridViewColumn.DataPropertyName = "Footer";
			this.uxFooterDataGridViewColumn.HeaderText = "Footer";
			this.uxFooterDataGridViewColumn.Name = "uxFooterDataGridViewColumn";
			this.uxFooterDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxFooterDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxFooterDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDNhaCungCapDataGridViewColumn
			//				
			this.uxIDNhaCungCapDataGridViewColumn.DisplayMember = "NhaCungCap";	
			this.uxIDNhaCungCapDataGridViewColumn.ValueMember = "IDNhaCungCap";	
			this.uxIDNhaCungCapDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDNhaCungCapDataGridViewColumn.DataSource = uxIDNhaCungCapBindingSource;				
				
			
			// this
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.uxNhaCungCapCauHinhDataGridView);
			this.Name = "NhaCungCapCauHinhDataGridView";
			this.Size = new System.Drawing.Size(470, 300);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDNhaCungCapBindingSource)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaCungCapCauHinhErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaCungCapCauHinhDataGridView)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxNhaCungCapCauHinhBindingSource)).EndInit();
			this.ResumeLayout(false);
		}
		#endregion
				
		#region events
		
		/// <summary>
		/// Raised the CurrentEntityChanged event.
		/// </summary>
		protected void OnCurrentEntityChanged()
		{
			if (CurrentEntityChanged != null)
			{
				NhaCungCapCauHinhDataGridViewEventArgs args = new NhaCungCapCauHinhDataGridViewEventArgs();
				args.NhaCungCapCauHinh = _currentNhaCungCapCauHinh;
				CurrentEntityChanged(this, args); 
			}
		}
		
		#endregion
		
		/// <summary>
		/// Strongly typed event 
		/// </summary>
		public class NhaCungCapCauHinhDataGridViewEventArgs : System.EventArgs
		{
			private Entities.NhaCungCapCauHinh	_NhaCungCapCauHinh;
	
			/// <summary>
			/// the  Entities.NhaCungCapCauHinh instance.
			/// </summary>
			public Entities.NhaCungCapCauHinh NhaCungCapCauHinh
			{
				get { return _NhaCungCapCauHinh; }
				set { _NhaCungCapCauHinh = value; }
			}	
		}
		
		/// <summary>
		/// Handles the DataError event of the uxNhaCungCapCauHinhDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewDataErrorEventArgs"/> instance containing the event data.</param>
		protected void OnNhaCungCapCauHinhDataGridViewDataError(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine(string.Format( "{0}, {1}", e.ColumnIndex, e.RowIndex));
		}
		
		/// <summary>
		/// Handles the CellValueNeeded event of the uxNhaCungCapCauHinhDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnNhaCungCapCauHinhDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxNhaCungCapCauHinhDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDNhaCungCapDataGridViewColumn":
						e.Value = NhaCungCapCauHinhList[e.RowIndex].IDNhaCungCap;
						break;
					case "uxGiaoDienDataGridViewColumn":
						e.Value = NhaCungCapCauHinhList[e.RowIndex].GiaoDien;
						break;
					case "uxNgonNguDataGridViewColumn":
						e.Value = NhaCungCapCauHinhList[e.RowIndex].NgonNgu;
						break;
					case "uxTitleDataGridViewColumn":
						e.Value = NhaCungCapCauHinhList[e.RowIndex].Title;
						break;
					case "uxBannerDataGridViewColumn":
						e.Value = NhaCungCapCauHinhList[e.RowIndex].Banner;
						break;
					case "uxLogoDataGridViewColumn":
						e.Value = NhaCungCapCauHinhList[e.RowIndex].Logo;
						break;
					case "uxFooterDataGridViewColumn":
						e.Value = NhaCungCapCauHinhList[e.RowIndex].Footer;
						break;
				default:
				break;
			}
		}
		
		/// <summary>
		/// Handles the CellValuePushed event of the uxNhaCungCapCauHinhDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnNhaCungCapCauHinhDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxNhaCungCapCauHinhDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDNhaCungCapDataGridViewColumn":
						NhaCungCapCauHinhList[e.RowIndex].IDNhaCungCap = (System.Guid)e.Value;
						break;
					case "uxGiaoDienDataGridViewColumn":
						NhaCungCapCauHinhList[e.RowIndex].GiaoDien = (System.String)e.Value;
						break;
					case "uxNgonNguDataGridViewColumn":
						NhaCungCapCauHinhList[e.RowIndex].NgonNgu = (System.String)e.Value;
						break;
					case "uxTitleDataGridViewColumn":
						NhaCungCapCauHinhList[e.RowIndex].Title = (System.String)e.Value;
						break;
					case "uxBannerDataGridViewColumn":
						NhaCungCapCauHinhList[e.RowIndex].Banner = (System.String)e.Value;
						break;
					case "uxLogoDataGridViewColumn":
						NhaCungCapCauHinhList[e.RowIndex].Logo = (System.String)e.Value;
						break;
					case "uxFooterDataGridViewColumn":
						NhaCungCapCauHinhList[e.RowIndex].Footer = (System.String)e.Value;
						break;
				default:
				break;
			}
		}
	}
}
